package Classwork;
import java.util.Scanner;

public class Demo06 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个整数");
        int a = scanner.nextInt();
        System.out.println("请输入一个整数");
        int b = scanner.nextInt();
        System.out.println("请输入一个整数");
        int plus = a + b;
        int minute = a - b;

        System.out.println("和: " + plus);
        System.out.println("差: " +minute);

        scanner.close();
    }
}
